//
//  DYPhotoHeaderCollectionViewCell.h
//  PrivatePhoto
//
//  Created by PrivatePhoto Team on 2021.
//  Copyright © 2021年 PrivatePhoto Team. All rights reserved.
//

#import "BaseCollectionViewCell.h"

@class DYPhotoHeaderCollectionViewCell;
@class CAPhotoHeaderCollectionViewCellModel;

@protocol CAPhotoHeaderCollectionViewCellDelegate <NSObject>

- (void)photoHeaderCollectionViewCell:(DYPhotoHeaderCollectionViewCell *)cell buttonAction:(UIButton *)sender;

@end

@interface DYPhotoHeaderCollectionViewCell : BaseCollectionViewCell

@property (nonatomic,weak) id<CAPhotoHeaderCollectionViewCellDelegate>delegate;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *selectButton;
@property (strong, nonatomic) CAPhotoHeaderCollectionViewCellModel *model;

@end



#pragma mark - model

@interface CAPhotoHeaderCollectionViewCellModel : NSObject

@property (nonatomic,assign) NSInteger count;
@property (nonatomic,assign) BOOL isSelect;
@property (nonatomic,assign) NSInteger section;

+ (CAPhotoHeaderCollectionViewCellModel *)ittemModelWithCount:(NSInteger)count isSelect:(BOOL)isSelect section:(NSInteger)section;
    
@end
